List all template drops from a corridor
Once the corridor is created, user can assign template drop to it. The corridor can have one or many template drops assigned. The below code snippet shows how to get all template drops from a corridor.
internal System.Collections.Generic.List<TemplateDrop> GetAllTemplateDrops(Corridor corridor)
{
//Get all template drops from corridor
System.Collections.Generic.IEnumerable<TemplateDrop> templateDrops = corridor.TemplateDrops;
return templateDrops.ToList();
}
Corridor.TemplateDrops property is used here to get all assigned template drops from corridor.